Hide minor edits - Show changes to markup
This tut should teach you how to bind keys to specific functions in MOH. The first part of this tutorial is completely ingame, the second is completely outside the game. In boht cases you should know how to find your MOHAA>main directory and how to open console.
First, let's choose a function. i have a few i like for general gaming purposes. one is cg_lagometer. it shows your lag as a richter scale graph.
the command itself is cg_lagometer 1 to turn it on, and cg_lagometer 0 to turn it off.
but it'd be nice if we had a bind to go from 1 to 0 and 0 to 1 right? well, lucky us. Q3 supports a special thing called toggle. so we'll use that. so type in your console...
toggle cg_lagometer
and lo and behold, flicking that command again and again, causes that little graph to go on and off.
but isn't this tutorial about binding keys? right, it's really simple to bind keys. put simply, it's
bind <key> <command>
so to bind out lagometer to, say, 'n'..
bind n toggle cg_lagometer
and anytime you hit n, that command is thrown into your console and you have your cute little graph.
Ok, now i want to list off some commands you can do yourself, see if you can get them to work.
command:
s_volume 0.0 ((BE SURE to type just s_volume first and copy down the numbers, bind another key to those numbers)) toggle FPS spectator
This part deals with configuration files (extension .cfg). these are special files made by Q3 to tell MOHAA what your settings are. mouse sensitivity, screen resolution, all key binds, etc. before we begin, i'd like you to copy/paste your unnamedsoldier.cfg to the same folder, as a backup so whatever you end up doing nothing bad will happen.
Ok, to begin, open Notepad and make a new file called custom.cfg, save it to your MOHAA>main>configs directory.
ok so with custom.cfg, we can do something really cool, we can make aliases. aliases allow us to put multiple commands into one key. but we need to do a couple things.
ok so lets say i want to use all the (imo) cheat commands.
these are:
ok this is enough for one alias. i know they all work, so let's put htem in an alias.
how we do this is much like binding, but the usage is a little different.
alias <aliasname> <command1>; <command2>;
this makes a new command out of existing ones. for example, our cheat commands, to form one command.
alias gayCommands cinematic 1; forcemodels 1; r_farplane 0 0 0; centerprint "Gayness on";
ok so let's test this. in the same custom.cfg file, add in the line
bind , gayCommands
so now, when you hit , ingame; these commands will all appear.
this has infinite usages. i have bunches of them for burst-fire, semi-auto fire, grenade that returns to your primary weapon, etc.
my favorite, however, is:
alias pill say "CYANIDE PILL!"; kill; bind ' pill
this makes the kill command more fun to me :)
Note
custom.cfg is read as well as the primary .cfg file, but only custom.cfg and the primary .cfg file. It will NOT read every config you throw into that folder.
Advanced users
The primary .cfg file's name is controlled in registries, so if you want to make sure that virus programs like Reverand and Missionary don't mess with your config, change that registry from unnamedsoldier to whatever you want. mine's porion.cfg .
open regedit, find this directory My computer>HKEY_CURRENT_USER>Software>EA Games
and look around for the config entry, change it to whatever you want. if you installed any expansions, make sure to change them to the new .cfg name too.
Well, i hope this helps everyone out there confused by binds and aliases and configs.